from django.http import HttpResponse
import utils
from django.utils import simplejson

def photodetails(request, nsid='me', photoid='0'):
    photoDetails = utils.getPhotoDetailsJSON(photoid)
    result = simplejson.dumps(photoDetails)
    response = HttpResponse(result, mimetype="text/plain")
    return response